console.log('小红书内容脚本注入11');

function extractNewDetail(){
  
}
function handleNew(){
  console.log(window.location)
  if (!window.location.endsWith('/explore')) {
    return extractNewDetail();
  } else {
    return false;
  }
}
// 消息监听
chrome.runtime.onMessage.addListener((message, sender, sendMessage) => {
  console.log(message)
  // 点击菜单后后台发送过来的收集消息
  // if (message.id === 'newDetail'){
  //   const result = handleNew();
  //   sendMessage(result);
  // }
});